package net.niufei.study.cpatterns.readwritelock;

public class Main {

	public static void main(String[] args) {
		Data data = new Data();
		
		for(int i = 0; i < 2; i++) {
			new Thread(new Writer(data)).start();
		}
		
		for(int i = 0; i < 5; i++) {
			new Thread(new Reader(data)).start();
		}
	}
}
